{yun:}include file="$userstyle/header.htm"{/yun}
<div class="yun_w1200">
    {yun:}include file="$userstyle/left.htm"{/yun}
    <div class="yun_m_rightbox fltR mt20 re">
    
            <div class="member_right_index_h1 fltL"> <span class="member_right_h1_span fltL">订阅管理</span> <i class="member_right_h1_icon user_bg"></i> </div>
        <div  class="resume_Prompt_box">
        <div  class="resume_Prompt">
        <i class="resume_Prompt_icon"></i>订阅职位，系统会根据您订阅的职位信息，按照您设定的条件自动发送到你的邮箱！
        <!--<a class="cblue" href="{yun:}url m=subscribe{/yun}">立即订阅</a>-->
        <a class="cblue" href="javascript:void(0)" onclick='subscribeuser();'>立即订阅</a>
        </div>
        </div>
        
       
        <div class="remindbox01 mt10">
            <div id="gms_showclew"></div>
            <form action="index.php" method="get" target="supportiframe" id='myform' class="layui-form">
                <input type="hidden" name="c" value="subscribe" />
                <input type="hidden" name="act" value="del" />
                <div class="resumelistbox01 mt10">
                
                    <div class="resume_box_list">
                    {yun:}if !empty($rows){/yun}
                    
                    
                    
                    
                        <div class="jobsubscribe_list_tit">
                            <div class="jobsubscribe_list_span jobsubscribe_listcheck">&nbsp;</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobname">职位类别</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobcity ">所在城市</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobxz">月薪范围</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobzq">发送周期</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobcz">操作</div>
                        </div>
                        {yun:}/if{/yun}
                        {yun:}foreach item=v from=$rows{/yun}
                        <div class="jobsubscribe_list_list">
                            <div class="jobsubscribe_list_span jobsubscribe_listcheck">
                            <input type="checkbox" name="del[]" value="{yun:}$v.id{/yun}" class="jobsubscribe_listcheckbox" lay-skin="primary">
                            </div>
                          <div class="jobsubscribe_list_span jobsubscribe_list_jobname">
                                <span class="List_Title_span_com">{yun:}$v.jobname{/yun}</span>
                               &nbsp;
                            </div>
                                    <div class="jobsubscribe_list_span jobsubscribe_list_jobcity ">&nbsp;{yun:}$v.city_name{/yun}</div>
                              <div class="jobsubscribe_list_span jobsubscribe_list_jobxz">&nbsp;{yun:}$v.salary{/yun}</div>
							  <div class="jobsubscribe_list_span jobsubscribe_list_jobzq">&nbsp;{yun:}$v.time{/yun}天</div>
                            <div class="jobsubscribe_list_span jobsubscribe_list_jobcz">
								<a href="index.php?c=subscribe&act=record&id={yun:}$v.id{/yun}" class="List_dete cblue">发送记录</a>
                                <em class="jobnotice_cz_line">|</em>
                                <a href="{yun:}url m=subscribe id='`$v.id`'{/yun}" class="List_dete cblue" target="_blank"> 修改</a>
                                <em class="jobnotice_cz_line">|</em>
                                <a href="javascript:void(0)" onclick="layer_del('确定要删除？','index.php?c=subscribe&act=del&id={yun:}$v.id{/yun}');" class="List_dete cblue"> 删除</a>
                            </div> 
                        </div>
                        {yun:}foreachelse{/yun}
                        <div class="msg_no">
              			<p>亲爱的用户，您还没有订阅职位哦，想要获得更多工作机会</p>
              			<p>立即订阅职位吧！</p>
                       <a class="msg_no_sq uesr_submit" href="javascript:void(0)" onclick='subscribeuser();'>立即订阅</a>
              			<!--<a href="{yun:}url m=subscribe{/yun}" target="_blank"class="msg_no_sq uesr_submit">立即去订阅>></a>-->
              			</div>
                        {yun:}/foreach{/yun}
                        {yun:}if $rows{/yun}
                        
                         <div class="job_operation_bot">
                       <input id="checkAll" type="checkbox" lay-skin="primary" lay-filter="alluser" class="job_operation_botcheckbox">
                       
                            <input type="button" name="subdel" value="批量删除" onclick="return really('del[]');" class="job_operation_bth">
             
             
             
      </div>



       
                        <div class="diggg">{yun:}$pagenav{/yun}</div>
                        {yun:}/if{/yun}
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
	<div class="index_no_resume_box" id="bdwx" style="display:none;">
		<div class="index_no_resume_cont">
			<div>
				<div class="yun_wxbd_img" id="#wx_login_qrcode">
					<img src="{yun:}$qrcode{/yun}" width="140" height="140">
				</div>
                <div class="yun_wxbd_tit">微信扫一扫</div>
				<div class="yun_wxbd_p">快速入职，消息先人一步</div>
 				<div class="yun_wxbd_ok"><a href="javascript:void(0);" class="close_yd">好,知道了</a></div>
			</div>

		</div>
	</div>
<script>
	layui.use(['form','layer', 'laydate'], function(){
    	var $ = layui.$,
			form = layui.form,
			laydate = layui.laydate,
			layer = layui.layer;
    	
    	form.on('checkbox(alluser)', function (data) {
       	 	$("input[name='del[]']").each(function () {
            	this.checked = data.elem.checked;
        	});
        	form.render('checkbox');
      	});
  	});
    function subscribeuser(){
      $.post('index.php?c=subscribe&act=subscribedingyue',function(data){
          if(data==1){
        layer.msg('您还未登录,请先登录！', 2, 8);return false;
      }
      if(data==2){
        layer.msg('只有个人和企业用户才可订阅！', 2, 8);return false; 
      }
      if(data==3){
        layer.msg(' 暂未绑定微信公众号，无法订阅！', 2, 8);return false; 
      }
      if(data==4){
        var wxlayer = layer.open({
          type: 1,
          title: '绑定微信',
          closeBtn: 0,
          border: [10, 0.3, '#000', true],
          area: ['300px', 'auto'],
          content: $("#bdwx")
        });
        $(".close_yd").click(function() {
          layer.close(wxlayer);
        });
      }
      if(data==5){
         window.location.href=weburl+"/index.php?m=subscribe";
      }
         
      });
    }
</script>
{yun:}include file="$userstyle/footer.htm"{/yun} 